package enums;

enum TrafficSignalValue{	RED, GREEN, YELLOW; }
class TrafficSignal{
	private TrafficSignalValue light;
	public TrafficSignal(TrafficSignalValue start){
		light = start;
	}
	public String toString(){
		return "Traffic signal light is " + light;
	}
}
public class Traffic {
	public static void main(String[] args) {
		TrafficSignal ts = new TrafficSignal( TrafficSignalValue.RED );
		System.out.println( ts );
	}

}
